package com.cpone.cloudweb.utils.bak;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class Server {
	static final int PORT = 9899;
	  public static void main(String[] args)
	      throws IOException {
	    ServerSocket s = new ServerSocket(PORT);
	    try {
	      while(true) {
	        Socket socket = s.accept();
	        try {
	          new SerSocket(socket);
	        } catch(IOException e) {
	          socket.close();
	        }
	      }
	    } finally {
	      s.close();
	    }
	  } 
}
